package com.my.chapter13;

public class practice6 {
    public static void main(String[] args) {
        P6 p = new P6(6,5000000,6.33f,263.0606023);
        System.out.println(p);
    }
}

class P6{
    private int i;
    private long l;
    private float f;
    private double d;
    public P6(int i,long l,float f,double d){
        this.i = i;
        this.l = l;
        this.f = f;
        this.d = d;
    }

    @Override
    public String toString() {
        String s = String.format("P6{int = %d，long = %d，float = %f，double = %e}",i,l,f,d);
        return s;
    }
}
